/*
 * @Author: 15956982113 493885262@qq.com
 * @Date: 2025-05-28 11:25:26
 * @LastEditors: 15956982113 493885262@qq.com
 * @LastEditTime: 2025-05-28 11:38:51
 * @FilePath: \v3-webpack\src\utils\auth
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// src/utils/auth.js
//不同存储方式 建议使用pinia
const TokenKey = 'token'

export function getToken() {
	return localStorage.getItem(TokenKey)
}

export function setToken(token) {
	return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
	return localStorage.removeItem(TokenKey)
}